// 创建路由
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';

import StaffAlum from '@/views/staffAlum.vue';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/temp.vue'),
  },
  {
    path: '/detail',
    name: 'detail',
    component: () => import('@/views/SongDetail.vue'),
  },
  // {
  //   path: '/staff-alum/:id',
  //   name: 'staff-alum',
  //   component: StaffAlum,
  // },
  // {
  //   path: '/play/:id',
  //   name: 'play',
  //   component: () => import('@/views/play.vue'),
  // },
];
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
